import {createApp} from "vue";
import App from "./App.vue";
import Antd from "ant-design-vue";
import * as antIcons from '@ant-design/icons-vue' //导入图标库
import "ant-design-vue/dist/reset.css";
import "./styles/index.scss"; // global css
import router from "./router/index";

import "./router/permission.ts";

import pinia from "./store/index";

const app = createApp(App);
// 注册图标组件
for (const i in antIcons) {
    // @ts-ignore
    app.component(i, antIcons[i])
}
app.use(Antd);
app.use(router);
app.use(pinia);
app.mount("#app");
